package com.huo.common.controller;

import com.huo.filestransport.vo.FtpServerInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("")
public class PageController {
	
	@Autowired
	private FtpServerInfo ftpServerInfo;
	
	@GetMapping("/index")
	public String index() {
		return "index";
	}
	
	@GetMapping("/ftpFileInfo")
	public String ftpFileInfo() {
		return "ftp/ftpFileInfo";
	}
	
	@GetMapping("/ftpFunction")
	public String ftpFunction(Model model) {
		model.addAttribute("ftpServerInfo", ftpServerInfo);
		return "ftp/ftpFunction";
	}
	
	@GetMapping("/ftpFileLog")
	public String ftpLog() {
		return "ftp/ftpFileLog";
	}
	
	@GetMapping("/job")
	String taskScheduleJob() {
		return "job/job";
	}

}
